package com.mhr.ai.cr.model

/**
 * Git MR (Merge Request) 信息数据类
 */
data class GitMRInfo(
    val id: String,
    val title: String,
    val description: String,
    val sourceBranch: String,
    val targetBranch: String,
    val author: String,
    val webUrl: String,
    val changes: List<FileChange>
)

/**
 * 文件变更信息
 */
data class FileChange(
    val oldPath: String?,
    val newPath: String,
    val changeType: ChangeType,
    val diff: String,
    val addedLines: Int,
    val removedLines: Int
)

/**
 * 变更类型枚举
 */
enum class ChangeType {
    ADDED,      // 新增文件
    MODIFIED,   // 修改文件
    DELETED,    // 删除文件
    RENAMED     // 重命名文件
}